package com.csii.branch.mapper.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.csii.autopoi.poi.excel.annotation.Excel;
import com.csii.core.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;

/**
 * @Description: 网点贷款统计
 * @Author: power-stdio
 * @Date:   2020-12-21
 * @Version: V1.0
 */
@Data
@TableName("cd_branch_stat_loan")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="cd_branch_stat_loan对象", description="网点贷款统计")
public class CdBranchStatLoan implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
	/**所属网点*/
	@Excel(name = "所属网点", width = 15, dictTable = "CD_BRANCH_BASE_INFO", dicText = "name", dicCode = "id")
	@Dict(dictTable = "CD_BRANCH_BASE_INFO", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "所属网点")
    private String netId;
	/**统计日期*/
	@Excel(name = "统计日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "统计日期")
    private Date statDate;
	/**贷款类型*/
	@Excel(name = "贷款类型", width = 15, dicCode = "loan_type")
	@Dict(dicCode = "loan_type")
    @ApiModelProperty(value = "贷款类型")
    private String type;
	/**产品名称*/
	@Excel(name = "产品名称", width = 15, dicCode = "personal_pro")
	@Dict(dicCode = "personal_pro")
    @ApiModelProperty(value = "产品名称")
    private String productName;
	/**贷款新增*/
	@Excel(name = "贷款新增", width = 15)
    @ApiModelProperty(value = "贷款新增")
    private BigDecimal newAdd;
	/**贷款总额*/
	@Excel(name = "贷款总额", width = 15)
    @ApiModelProperty(value = "贷款总额")
    private BigDecimal amount;
}
